package com.jiedeng.util;

import java.util.Locale;

/**
 * 基础参数配置类
 *
 * @author zhouyb
 */
public class ForwardConstants {
    public static String ERROR = "error";

    public static String SUCCESS = "success";

    // 重定向
    public static String REDIRECT = "redirect:";
    // 迁移到登陆画面
    public static String LOGIN = "/login-page";
    // 后台
    public static String BACK = "back";
    // 首页
    public static String INDEX = "/index";
    // 新建画面
    public static String ADD = "/add";
    // 修改画面
    public static String EDIT = "/edit";
    // 列表画面
    public static String LIST = "/list";
    //撤销
    public static String REVOKE = "/revoke";
    // 详细
    public static String DETAIL = "/detail";
    // 信息
    public static String INFO = "/info";
    // 设置
    public static String SETTING = "/setting";
    //公共
    public static String COMMON = "common";
    //语言环境常量
    public static final Locale DEFAULT_LOCALE = Locale.CHINA;
    //默认分页条数
    public static final int PAGE_SIZE_DEFAULT = 20;
    // 登录帐号的SessionKey
    public static final String SESSION_USER_KEY = "userSession";
    //登录帐号ID的SessionKey
    public static final String SESSION_USER_ID_KEY = "userIdSession";
    //登录帐号ID的SessionKey
    public static final String SESSION_USER_NAME_KEY = "userNameSession";
    //登录帐号ID的SessionKey
    public static final String SESSION_USER_CORP_KEY = "userCorpSession";
    //登陆账号权限的SessionKey
    public static final String SESSION_USER_ACCESS_TOKEN_KEY = "accessToken";
    //APP登录帐号SessionKey
    public static final String APP_SESSION_USER_KEY = "appSessionUserKey";

    //记录状态
    public static final int STATUS_ISVALID_YES = 1;
    public static final int STATUS_ISVALID_NO  = 0;

    // gbk
    public static String GBK = "gbk";
    // iso-8859-1
    public static String ISO = "iso-8859-1";
    // UTF-8
    public static String UTF8 = "UTF-8";
    //消息类型
    public static String TASK_PUB = "任务-发布";
    public static String TASK_REFORM = "任务-整改";
    public static String TASK_REFORMED = "任务-已整改";
    public static String TASK_REJECT = "任务-打回";
}
